<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<h:form id="portalFastMenu">  
	  <p:toolbar id="portalFastMenu" styleClass="portal-menu-fast">  
	    <p:toolbarGroup align="left">
	    	<div style="float:left;">
	    		<p:spacer width="30" height="25" />
	    	</div>
	    	<div style="float:left;padding-top:5px;">
	            <h:outputText value="#{messages['portal.login.user.title']}" />
	            <h:outputText value="#{sinoAuthenticator.userFullName}" /> 
	            <p:separator />
            </div>
	    </p:toolbarGroup>
	  
	    <p:separator />
	  
	    <p:toolbarGroup align="right">
	    	<p:commandButton image="ui-icon-image" value="皮肤" type="button" onclick="themeMenu.show();" />
	    	<p:separator />
	    	<c:forEach items="#{navigationViewBeanService.checkedFastMenuItems}" var="naviFastMenuElement">
	    		<c:if test="#{naviFastMenuElement.type eq 'divider'}">
	    			<p:separator />
	    		</c:if>
	    		<c:if test="#{naviFastMenuElement.type ne 'divider'}">
	    			<p:commandButton 
	    				onstart="statusDialog.show();" 
	    				oncomplete="SinoPortal.NaviMenu.onClickMenuItemComplete(xhr, status, args)"
	    			 	value="#{messages[naviFastMenuElement.displayName]}"
	    			 	actionListener="#{portalAction.naviMenuAction}"
	    			 	title="#{messages[naviFastMenuElement.description]}" 
	    			 	image="ui-icon-#{naviFastMenuElement.image16}">
	    			 	<h:inputHidden value="#{naviFastMenuElement.id}" />
	    			 </p:commandButton>
	    		</c:if>
	    	</c:forEach>
	    	<p:commandButton image="ui-icon-power" title="#{messages['portal.navi.fastMenu.logout.desc']}" action="#{sinoAuthenticator.logout}" />
	    </p:toolbarGroup>  
	  
	  </p:toolbar>  
	</h:form>

</f:view>